<?php
    header("Content-Type:text/html;charset=utf-8");
    include "../comm/config.php";
    $uname = trim($_GET["name"]); 
	if($uname==''){
		echo "true";
	}else{
		$con = @mysql_connect("$dbserver","$dbuser","$dbpass" )or die(ERR_DB);    
		mysql_select_db("$dbname",$con)or die("can not choose the dbname!"); 
		$query="select * from ".$BIAOTOU."user where ddusername='".$uname."'";
		mysql_query("set names utf8");
		$res=mysql_query($query);	
		if(mysql_num_rows($res)!=0)
		{echo "true";}
		else
		{echo "false";}
	}
?>